package com.bluetrum.devicemanager.models;

public class SpatialAudioMode {

    public final static byte MODE_OFF           = 0;
    public final static byte MODE_FIXED         = 1;
    public final static byte MODE_HEAD_TRACKING = 2;

    private final byte mode;

    public SpatialAudioMode(byte mode) {
        this.mode = mode;
    }

    /**
     * 不支持Head Tracking可以使用这个简化
     * @param on 开关
     */
    public SpatialAudioMode(boolean on) {
        this(on ? MODE_FIXED : MODE_OFF);
    }

    public byte getMode() {
        return mode;
    }

    public boolean isOn() {
        return mode != MODE_OFF;
    }
}
